/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.ez2find.manager;

import com.ez2find.model.Area;
import com.ez2find.model.RegisterUser;
import com.ez2find.model.Sale;
import com.ez2find.model.SaleCategorie;
import com.ez2find.model.Site;
import java.util.List;
import javax.ejb.Local;

/**
 *
 * @author Owner
 */
@Local
public interface SaleManagerLocal {

    void create(Sale sale) throws Exception;

    void delete(Sale sale) throws Exception;

    Sale find(long id);

    long lastCode();

    List<Sale> listAll();

    List<Sale> listSalesArea(Area area, boolean saleC, SaleCategorie saleCategorie, String consult);

    List<Sale> listSalesSite(Site site, boolean saleC, SaleCategorie saleCategorie, String consult);

    Sale merge(Sale sale) throws Exception;

    void update(Sale sale) throws Exception;
    
}
